package org.webrx;

import java.util.List;

public class Var2Demo {
    int n1;
    Integer n2;//null
    boolean f; //false
    String str;//null
    float f1;//0.0
    double d1;//0.0
    public static void main(String[] args) {
        short s = 1;
        s += 1; //相当于s = s + 1;
        System.out.println(s);

        byte i = 1;
        i = (byte)(i + 1);
        System.out.println(i);

        System.out.println((int)'张');
        System.out.println((int)'三');


        //java.lang.Integer 包装类
        Integer a1 = 3;
        int a3 = a1;

        //基本数据类型
        int a2 = 3;
        System.out.println(a1);
        System.out.println(a2);


        var vv = new Var2Demo();
        System.out.println(vv.n1);//0
        System.out.println(vv.n2);//null
        System.out.println(vv.f);
    }
}
